package o;

import android.graphics.Path;
import android.graphics.PathMeasure;
import android.graphics.PointF;
import android.util.Property;

class nj<T> extends Property<T, Float> {
    private final PathMeasure ˊ;
    private final float[] ˋ = new float[2];
    private final Property<T, PointF> ˎ;
    private final PointF ˏ = new PointF();
    private final float ॱ;
    private float ᐝ;

    public /* synthetic */ Object get(Object obj) {
        return ˏ(obj);
    }

    public /* synthetic */ void set(Object obj, Object obj2) {
        ˏ(obj, (Float) obj2);
    }

    nj(Property<T, PointF> property, Path path) {
        super(Float.class, property.getName());
        this.ˎ = property;
        this.ˊ = new PathMeasure(path, false);
        this.ॱ = this.ˊ.getLength();
    }

    public Float ˏ(T t) {
        return Float.valueOf(this.ᐝ);
    }

    public void ˏ(T t, Float f) {
        this.ᐝ = f.floatValue();
        this.ˊ.getPosTan(this.ॱ * f.floatValue(), this.ˋ, null);
        this.ˏ.x = this.ˋ[0];
        this.ˏ.y = this.ˋ[1];
        this.ˎ.set(t, this.ˏ);
    }
}
